<%-- 
    Document   : proSubSubject
    Created on : Oct 27, 2009, 10:02:43 PM
    Author     : tungttgroup1
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax" %>
<%@page import="java.sql.*" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
         <jsp:include page="header.jsp" />
    </head>
   
    <body>
        <jsp:useBean id="sub" class="DAO.DAOTest" scope="page" />
        <ajax:anchors target="time">
        <ul>
            <%
                int id = Integer.parseInt(request.getParameter("SubjectID"));
                ResultSet rss = null;
                rss = sub.selectSubID(id);
                while (rss.next()) {
            %>
           <li><a href="displayTest.jsp?subID=<%=rss.getString("subID") %>" ><%=rss.getString("subName") %></a></li>
            <%
                   
                }
            %>
        </ul>
        </ajax:anchors>
        <span id="time"></span>
    </body>
</html>
